package com.order.order.Feign;

import com.order.order.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "umiwe-permission",fallback=FeignFeignService.class)
public interface FeignFeignClient {

    @RequestMapping("/feign/index")
    public String test(@RequestBody String name);

    @RequestMapping(value="/test2/{id}",method = RequestMethod.GET)
    public String test2(@PathVariable("id") Long id);

    @RequestMapping(value="/test4/{string}",method = RequestMethod.GET)
    public String test4(@PathVariable("string") String string);

    @RequestMapping("/product/{id}")
    public User test3(@PathVariable("id") Long id);
}
